package be.kdg.netpresent;

import java.rmi.*;

public interface NetPresentInt extends Remote {

	// Method for creating new presentations on the system. A user defined name
	// for the presentation and a valid password should be provided. These variable
	// will be collected through the use of the GUI.
	public PresentationInt makePresentation( String sNewPresName, String sNewPWD )
			throws RemoteException;

	// Try to get a presentation by it's ID and a provided password.
	// The presentation, if present by it's ID will only be returned
	// if the correct password is provided.
	public PresentationInt getPresentation( int sNummer, String pPWD )
			throws RemoteException;

	// Method to get a list of user names of all the presentations.
	// This method is used by the GUI to build a list the user can choose
	// form to start a desired presentation.
	public String[] getPresentationList() throws java.rmi.RemoteException;
	
	// In addition to the above method, this one is needed to get a presentation
	// through its selected "user defined name".
	public int getPresIndexByName(String name)  throws java.rmi.RemoteException;
}